include "../model/TProgram.thrift"
include "../model/TQuery.thrift"
namespace java com.iqiyi.pps.epg.api.server.web.program

 service ProgramWebService {
     TQuery.TResponse addProgram(1:TProgram.TProgram entity);
     TQuery.TResponse editProgram(1:TProgram.TProgram entity);
     bool deleteProgram(1:i64 id, 2:string userName);
     TProgram.TProgram getById(1:i64 id);
     TProgram.TProgramPage findProgramPage(1:TQuery.TPage page, 2:TQuery.TFilter filter);
     TProgram.TProgramBasePage findProgramBasePage(1:TQuery.TPage page, 2:TQuery.TFilter filter);
     bool saveLogo(1:i64 id, 2:string url);
     bool queryAssignProgramList(1:i64 fatherId);
     bool isInRange(1:i32 fatherId,2:string startTime,3:string endTime,4:i64 excludeId);
     void forceSyncProgramList(1:i64 fatherId ,2:i64 programId);
     string productImg(1:i64 fatherId,2:string imageDatas);
     bool hasPrograms(1:i64 fatherId);
     string searchProgram(1:string name, 2:string startDate, 3:string endDate, 4:string porgramQipuId,5:string channelQipuId,6:string channelName);
     string setCharge(1:i64 qipuId,2:string bossStatus,3:bool isMemberOnly,4:bool isMemberFree);
     string checkEpisodeBase(1:TProgram.TProgram entity);
     string searchFilterProgram(1:map<string,string> params);
     string searchCurrentAndNextProgram(1:i64 fatherId);
     string batchAdd(1:list<i64> idList ,2:string beginTime,3:i64 fatherId);
     i32 moveProgram(1:i64 id, 2:i32 flag, 3:i64 fatherId, 4:string operationDay);
     string daySortProgram(1:i64 fatherId,2:string sortDate);
     string proxyToPuYu(1:string barCode ,2:string cprVideoName);
     i32 indexMove(1:i64 id, 2:i64 aimId, 3:string dateTime, 4:i64 fatherId);
     i32 batchDel(1:list<i64> idList ,2:string dateTime,3:i64 fatherId);
     i32 saveStreamError(1:i32 errorCode, 2:i64 channelId, 3:i64 programId, 4:string streamName, 5:i32 errorAll);
     i32 toggleLockProgram(1:i64 id, 2:i64 fatherId, 3:i32 lockType);
     i64 getYesterdayEndTime(1:i64 channelId,2:i64 newStartTime);
     list<TProgram.TLivingInfo> getTLivingInfo();
     string getMaxDurationProgram(1:i64 fatherId);
     i32 programForceCheck(1:i64 programId);
     TProgram.TProgramLogPage getProgramLogList(1:TQuery.TPage page, 2:TQuery.TFilter filter);
     bool saveProgramLog(1: TProgram.TProgramLog entity);
     string snapshot(1:i64 taskId,2:string snapshot 3:string errcode,4:string errmsg );
     bool saveSnapPicUrl(1:i64 id, 2:string url);
     i32 modifyAdvert(1:i64 id ,2:i32 modifyType);
     i32 moveAdvert(1:i64 id,2:i32 moveDirection);

     TProgram.TProgramPage findProgramLibrary(1:TQuery.TPage page, 2:TQuery.TFilter filter);
     TQuery.TResponse getRtmpStream(1:TQuery.TFilter filter);
     TQuery.TResponse unbindSport(1:i64 programQipuId,2:i64 matchId);

     TQuery.TResponse saveOAInfo(1:TProgram.TInfoOA entity);
}